package com.hyh.sso.config;

import com.hyh.sso.helper.LoginHelper;
import com.hyh.sso.service.LoginService;
import com.hyh.sso.service.impl.LoginServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * SSO AutoConfiguration
 *
 * @Author: heyuhua
 * @Date: 2021/1/28 16:02
 */
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
public class HyhSSOAutoConfiguration {

    @Bean
    public LoginHelper loginHelper() {
        return new LoginHelper();
    }

    @Bean
    public LoginService loginService() {
        return new LoginServiceImpl();
    }

}
